package com.zhang.chatcenter;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author 000095133
 */
@ComponentScan(basePackages = {"com.zhang.chatcenter", "com.zhang.redis", "com.zhang.infrastructure", "com.zhang.sharding.model"})
@EnableFeignClients("com.zhang.chatcenter.common")
@SpringBootApplication
@MapperScan(basePackages = "com.zhang.chatcenter.dao")
@EnableDiscoveryClient
@EnableAsync
public class ChatCenterApplication {

    public static void main(String[] args) {
        SpringApplication.run(ChatCenterApplication.class, args);
    }

}
